<html>
<head>
<%@ include file="../includes/comun.jsp"%>
<script language="javascript" src="<%=request.getContextPath()%>/js/operatoria/RetirarEfectivo.js<%=aleatorio%>"></script>
<style>
	#txtObservacion {width: 100%;}
	#txtImporte     {width: 200px;}
	#selDivisa      {width: 100px;}
	.td0101 {width: 150px !important;}
	.td0104 {width: 100px !important;}
	.td0201 {width: 10%;}
	.td0202 {width: 15%;}
	.td0203 {width: 15%;}
	.td0204 {width: 15%;}
	.td0205 {width: 20%;}
	.td0206 {width: 15%;}
	.td0207 {width: 10%;}
	.tblDetalle  {overflow-y: scroll; height: 140px; overflow-x: hidden; margin-top: 3px; margin-bottom: 3px; border: solid 1px #4374a7;}
</style>
</head>
<body onload="javascript:inicia();">
<c:choose>
<c:when test="${TRANSACCION_TARJETA ne '1'}">
<c:set var="titular" value="${cuentaCliente.clienteTitular}"/>
<form name="form1" id="form1" method="post" action="<%=request.getContextPath()%>/confirmacioningreso.do?method=confirmarIngreso">
<input type="hidden" id="hidTransaccionId" value="${transaccionId}"/>
<input type="hidden" id="hidSegmentoId" value="${titular.codigosegmentacion}"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
		<table ><tr><td colspan="6" class="cuadrotitle">Retiro de Efectivo
		<span class="calculadora"><img src="<%=request.getContextPath()%>/images/calculadora.png" style="width: 30px;height: 30px;" onclick="javascript:abrirCalculadora()" /></span>		
		</td></tr></table>
		</td>
	</tr>
	<tr><td>
		<fieldset>
		<legend>Datos de la Operaci&oacute;n</legend>
		<table class="tblFormulario">
		<tr>
			<td class="etiqueta td0101">Titular</td>
			<td class="valor noeditable" colspan="3"><c:out value="${titular.nombreCompleto}"/><input type="hidden" name="hidNombreTitular" value="<c:out value="${titular.nombreCompleto}"/>"/></td>
			<td class="etiqueta td0103">Moneda</td>
			<td class="valor noeditable td0104">${cuentaCliente.codigodivisa}
			<input type="hidden" name="hddMoneda" id="hddMoneda" value="${cuentaCliente.codigodivisa}"/>
			</td>
		</tr>
		<tr>
			<td class="etiqueta td0101">Condici&oacute;n de la Cuenta</td>
			<td class="valor noeditable" colspan="3">${cuentaCliente.descripcioncondicioncta}<input type="hidden" name="hidCondicionCuenta" value="${cuentaCliente.descripcioncondicioncta}"/></td>
			<td class="valor" rowspan="4">&nbsp;</td>
		</tr>
		<tr>
			<td class="etiqueta td0101">N&uacute;mero de la Cuenta</td>
			<td class="valor noeditable" colspan="3">${cuentaCliente.numeroCuentaCompleto}
				<input type="hidden" name="hddNumeroCuenta" id="hddNumeroCuenta" value="${cuentaCliente.numeroCuentaCompleto}"/>
			</td>
		</tr>
		<tr>
			<td class="etiqueta td0101">Importe</td>
			<td class="valor"><input type="text" name="txtImporte" id="txtImporte" class="inputImporte obligatorio editable" onblur="formatearNumeroFormulario(this)" onkeypress="return fieldNumber(event,this)"/><input type="hidden" name="hddImporte" id="hddImporte"/></td>
			<td class="etiqueta">Divisa</td>
			<td class="valor">
			<select name="selDivisa" id="selDivisa" class="combo1 obligatorio editable" value ='<c:out value="${cuentaCliente.codigodivisa}" />' onchange="javascript:asignarFoco('txtObservacion');" >
			<c:forEach items="${datosOperacion.cajasApertura}" var="caja">
				<option value="${caja.divisaId}">${caja.divisaNombre}</option>
			</c:forEach>
			</select>
			</td>
		</tr>
		<tr>
			<td class="etiqueta td0101">Observaci&oacute;n</td>
			<td class="valor" colspan="3"><input type="text" name="txtObservacion" id="txtObservacion" class="editable,observacion" maxlength="40"/><input type="hidden" name="hddObservacionImpr" id="hddObservacionImpr"/></td>
		</tr>
		</table>
		</fieldset>
		</td>
	</tr>
	<tr>
		<td>
		<fieldset>
		<legend>Lista de Representantes</legend>
		<div class="tblDetalle">
		<table class="tblListado">
			<thead>
			<tr>
				<th style="display: none">&nbsp;</th>
				<th>DNI</th>
				<th>Apellido Paterno</th>
				<th>Apellido Materno</th>
				<th>Nombre</th>
				<th>Direcci&oacute;n</th>
				<th>Estado Civil</th>
				<!-- c:if test="${consultaReniec==1}" -->
				<th>&nbsp;</th>
				<!-- /c:if -->
			</tr>
			</thead>
			<tbody id="tblRepresentantes">
			<c:forEach items="${cuentaCliente.clientes}" var="cli">
			<tr id="tr${cli.numerocliente}">
				<c:choose>
					<c:when test="${cli.esTitular}">
					<td style="display: none" class="cnsReniec" id="td${cli.numeroidentificacion}">${consultaReniec}</td>
					</c:when>
					<c:otherwise>
					<td style="display: none" class="cnsReniec">0</td>
					</c:otherwise>
				</c:choose>
				<td class="td0201">${cli.numeroidentificacion}</td>
				<td class="td0202">${cli.primerapellido}</td>
				<td class="td0203">${cli.segundoapellido}</td>
				<td class="td0204">${cli.nombrecliente}</td>
				<td class="td0205">${cli.direccionDomicilio}</td>
				<td class="td0206">${cli.descripcionEstadoCivil}</td>
				<!-- c:if test="${consultaReniec==1}" -->
				<c:choose>
					<c:when test="${cli.esTitular}">
					<td class="td0207"><input type="button" onclick="consultarRENIEC('${cli.numeroidentificacion}')" value="Consultar Reniec" class="boton1 editable"></td>
					</c:when>
					<c:otherwise>
					<td class="td0207">&nbsp;</td>
					</c:otherwise>
				</c:choose>
				<!-- /c:if -->
			</tr>
			</c:forEach>
			</tbody>
		</table>
		</div>
		</fieldset>
		</td>
	</tr>
</table>
<input type="hidden" name="hddTransaccion" id="hddTransaccion" value="${transaccion}"/>
<center>
<%request.setAttribute("reniecVisible","false");%>
<%@ include file="../includes/botonera.jsp"%>
</center>
<%@ include file="../includes/impresionVoucher.jsp"%>
<%@ include file="../includes/ConfirmacionOperacion2.jsp"%>
<%@ include file="../includes/Calculadora.jsp"%>

</form>
</c:when>
<c:otherwise>
<jsp:include page="../includes/mensajeNoAcceso.jsp"></jsp:include>
</c:otherwise>
</c:choose> 
</body>
</html>